home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / gapdemo1.zip / ARCVIEW.BAT < prev    next >
DOS Batch File  |  1993-04-26  |  549b  |  27 lines

  1. @echo off
  2.  
  3. REM     Called by GAP to list the contents of an archive
  4. REM     Output should be redirected to ARCVIEW.TXT
  5. REM             pkunzip /v zipfile.zip >ARCVIEW.TXT
  6.  
  7. REM     %1 = Full Path/Name of the Archive File to process
  8. REM     %2 = What kind of Archive it is: ARC,ZIP,ICE,LZH,PAK,etc
  9.  
  10. if %2 == ZIP goto dozip
  11. if %2 == EXE goto dozip
  12. if %2 == ARC goto doarc
  13. if %2 == LZH goto dolzh
  14. goto end
  15.  
  16. :dozip
  17. pkunzip /v %1 >ARCVIEW.TXT
  18. goto end
  19.  
  20. :doarc
  21. pkunpak /v %1 >ARCVIEW.TXT
  22. goto end
  23.  
  24. :dolzh
  25. lha %1 >ARCVIEW.TXT
  26. :end
  27.